<@master template="common/default"  title="人员关系维护">
<div class="detaiTab  detaiTab1">
<form action="/HREmplAuditor/index"  class="clearfix" data-action-html="#action_load_body"  id="o2oForm" >
	 
	  <table border="0" cellpadding="0" cellspacing="0" width="100%">
	  <tr>
	  	 <td class="bg" align="right" width="15%">姓名:</td>
	     <td>
			<@autocomplete url="/act/search/employee?empName=" hideIdName="userNo" value="${vo.employeeName}" name="employeeName" placeholder = "请输入人员姓名"/>(联想)
	     </td>
	     <td class="bg" align="right" width="15%">关系:</td>
	     <td>
			<@select dataSouceType="EMPLOYEEAUDITORTYPE" name="auditorType" value="${vo.auditorType}" id="auditorType"/></td>
	     </td>
	    </tr>
	    <tr>
              <td class="bg" align="right">关系人:</td>
              <td colspan="3">
              	<@autocomplete url="/act/search/employee?empName=" hideIdName="userNo" value="${vo.auditorName}" name="auditorName" placeholder = "请输入关系人姓名"/>(联想)
              </td>
        </tr>
	    <tr>
              <td class="bg"></td>
              <td colspan="3">
                  <input type="submit" value="查询" class="btn_auto_30 btn_blue" /> 
              
              	  <a class="action-ajax-btn btn_auto_30 btn_blue ml10" href="/rHREmplAuditor/add_view">添加</a>
              </td>
        </tr>
	 </table>
	</form>
</div>
<div class="detailsBox mt20">
<h3>人员关系</h3>
<form class="action-ajax-form" method="post" name="auditorForm" id="auditorForm">
	<div id="o2o_result"  class="action-ajax-load" data-url="${o2ourl}"></div>
	<@permission permissionName="setup_hrEmplAuditor">
	<div class=" mtb20 tac">
		<input type="submit" value="批量删除" class="btn_auto_30 btn_blue " onclick="batchDel();">
		<input type="submit" value="设置审批关系" class="btn_auto_30 btn_blue " onclick="batchUpdate();">
	</div>
	</@permission>
</div>
</form>

<@js>
function batchDel(){
	$("#auditorForm").addClass("action-ajax-form-confirm");
	document.auditorForm.action = "/rHREmplAuditor/batchDeleteHrEmplAuditor"; 
}

function batchUpdate(){
	document.auditorForm.action = "/rHREmplAuditor/setupPopup";
}
</@js>
</@master>